package com.core.dto.analysis;

import com.core.model.enumType.WorkOverTimeEnum;

import java.util.HashMap;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: lxf
 * Date: 2017/3/10
 * Time: 11:28
 * To change this template use Editor | File and Code Templates.
 */
public enum AnalysisEnum {

    WORKTIME("加班时间"),
    WORKTIMES("加班次数");

    private String label;

    AnalysisEnum(String label) {
        this.label = label;
    }

    public static Map<String, Object> toMaps() {
        Map<String, Object> map = new HashMap();
        for (AnalysisEnum analysisEnum : AnalysisEnum.values()) {
            map.put(analysisEnum.name(), analysisEnum.getLabel());
        }
        return map;
    }

    public String getLabel() {
        return label;
    }

    public String getValue() {
        return name();
    }

}
